package com.papers.juan.domain.bo;

import com.papers.common.core.validate.AddGroup;
import com.papers.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.papers.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 题库业务对象 t_juan_question_repos
 *
 * @author papers
 * @date 2022-10-08
 */

@Data
public class TJuanQuestionReposBo{

    /**
     * ID
     */
    @NotBlank(message = "ID不能为空", groups = { EditGroup.class })
    private String reposId;

    /**
     * 组织ID
     */
//    @NotBlank(message = "组织ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orgId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reposName;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reposDes;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reposCode;

    /**
     * 类型
     */
//    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reposType;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reposStatus;

    /**
     * 创建人
     */
//    @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createdBy;

    /**
     * 创建时间
     */
//    @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 更新人
     */
//    @NotBlank(message = "更新人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updatedBy;

    /**
     * 更新时间
//     */
//    @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedTime;

    @Transient
    private String[] ids;
    @Transient
    private Integer type;
}
